<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>团队信息</title>
    <link rel="stylesheet" href="../css/10TDXX.css">
</head>

<body>
<div class="body">
    <div class="top">
        <div class="nav-top">
            <div id="menu_left">
                <img src="../image/02main.jpg" />
            </div>
            <div class="title">
                <img class="img1" src="../image/daohangtiao1.jpg" />
                <div class="tab">
                    <table>
                        <tr>
                            <td><a href="/employee/02main" style=" margin-left:-295px; color:#cfdef7; font-family:黑体;">我的中心</a></td>
                        </tr>
                    </table>
                </div>
                <img class="img2" src="../image/daohangtiao1.jpg" />
                <div class="tab">
                    <table>
                        <tr>
                            <td><a href="#" style=" margin-left:-125px; color:#cfdef7; font-family:黑体;">在线登记</a></td>
                            <td><a href="#" style=" margin-left:-45px; color:#cfdef7; font-family:黑体;">×</a></td>
                        </tr>
                    </table>
                </div>
                <img class="img3" src="../image/daohangtiao2.jpg" />
                <div class="tab">
                    <table>
                        <tr>
                            <td><a href="#" style="color:#006ce0; font-family:黑体;"><b>团队信息</b></a></td>
                            <td><a href="#" style="color:#a1a4a6; font-family:黑体;"><b>×</b></a></td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="menu_rigth">
                <p class="p2">欢迎您,</p><p class="p1">${sessionScope.employee.name}</p>
                <ul>
                    <li class="li1"><a href="#"><img src="../image/daohangtiao_suo.jpg" style="margin-left:110px; width:18px; height:18px;"/></a></li>
                    <li class="li2"><a href="/index/signout"><img src="../image/daohangtiao_out.jpg" style="margin-left:140px; width:18px; height:18px;" /></a></li>
                </ul>
            </div>
        </div>
    </div>

    <div class="content">
        <div class="content1">
            <div class="content2">
                <div class="div1">
                    <form:form action="/team/select" method="post">
                      <input type="text" placeholder="  请输入团队名称" class="input2" name="name"/>
                        <input type="text" placeholder="  请输入负责人" class="input2" name="leader"/>
                        <input type="submit" name="submit" value="查询" />
                    </form:form>
                </div>
                <table class="pure-table pure-table-horizontal">
                    <thead class="thead1">
                    <tr>
                        <th style="width:500px;">团队名称</th>
                        <th style="width:100px;">所在区域</th>
                        <th style="width:100px;">团队负责人</th>
                        <th style="width:200px;">创建时间</th>
                        <th style="width:250px;">操作</th>
                    </tr>
                    </thead>

                    <c:forEach items="${teamList}" var="list">
                    <thead>
                    <tr>
                        <td><img src="../image/TDXX_less.jpg" class="image2" />${list.name}</td>
                        <td>${list.location}</td>
                        <td>${list.leader}</td>
                        <td><fmt:formatDate value="${list.creatTime}" pattern="yyyy年M月dd日"/></td>
                        <td>
                            <a href="#" style="border-right:1px solid #CCC;">新增子节点&nbsp;&nbsp;&nbsp;</a>
                            <a href="#" style="border-right:1px solid #CCC;">&nbsp;编辑&nbsp;&nbsp;</a>
                            <a href="/team/deleteByTeam?team_id=${list.id}">&nbsp;删除</a>
                        </td>
                    </tr>
                    </thead>
                    </c:forEach>
                </table>
            </div>
        </div>
    </div>


    <div class="page">
        <ul>
            <li class="page_li">
                <a class="page_btn"id="prePage" href="/team/showTeam?page=${currentPage-1}">
                    <
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn1" href="/team/showTeam?page=1">
                    1
                </a>
            </li>
            <li class="page_li"> <span class="pages_span" id="prePoint">...</span> </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn2" href="/team/showTeam?page=${currentPage-2}">
                    ${currentPage-2}
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn3" href="/team/showTeam?page=${currentPage-1}">
                    ${currentPage-1}
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn4" href="/team/showTeam?page=${currentPage}">
                    ${currentPage}
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn5" href="/team/showTeam?page=${currentPage+1}">
                    ${currentPage+1}
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn6" href="/team/showTeam?page=${currentPage+2}">
                    ${currentPage+2}
                </a>
            </li>
            <li class="page_li"> <span class="pages_span" id="sufPoint">...</span> </li>
            <li class="page_li">
                <a class="page_btn" id="page_btn7" href="/team/showTeam?page=${all}">
                    ${all}
                </a>
            </li>
            <li class="page_li">
                <a class="page_btn" id="sufPage" href="/team/showTeam?page=${currentPage+1}">
                    >
                </a>
            </li>
        </ul>
    </div>
</div>


    <div class="bottom">
        Copyright © 2015 中国电信股份有限公司福建分公司. All Rights Reserved
    </div>
</div>
</body>
</html>
